Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingContrib--errorhandlers

This contribution is part of XML component org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingContrib inside nuxeo-platform-web-common-5.8.jar

Extension Point

Extension point errorhandlers of component ExceptionHandlingService.

Contributed Items

  • <errorHandlers bundle="messages" defaultpage="/nuxeo_error.jsp" loggerName="nuxeo-error-log">
          <handlers>
            <handler code="404" error=".*NoSuchDocumentException" message="Error.Document.Not.Found"/>
            <handler error=".*SecurityException" message="Error.Insuffisant.Rights" page="/nuxeo_error_security.jsp"/>
            <handler error=".*" message="Error.Unknown"/>
          </handlers>
        </errorHandlers>

XML Source

<extension point="errorhandlers" target="org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingService">
    <errorHandlers bundle="messages" defaultpage="/nuxeo_error.jsp" loggerName="nuxeo-error-log">
      <handlers>
        <handler code="404" error=".*NoSuchDocumentException" message="Error.Document.Not.Found"/>
        <handler error=".*SecurityException" message="Error.Insuffisant.Rights" page="/nuxeo_error_security.jsp"/>
        <handler error=".*" message="Error.Unknown"/>
      </handlers>
    </errorHandlers>
  </extension>